package com.qys.livesMall.financial.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 理财视频
 * </p>
 *
 * @author 
 * @since 2023-07-31
 */
@Getter
@Setter
@TableName("h2_offline_short_video")
@Schema(name = "OfflineShortVideo", description = "理财视频")
public class OfflineShortVideo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "短视频链接")
    private String url;

    @Schema(description = "封面图片")
    private String img;

    @Schema(description = "详情")
    private String detail;

    @Schema(description = "创建人")
    private Long userId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "短视频分类id")
    private String shortVideoCategoryId;

    @Schema(description = "短视频分类名称")
    private String shortVideoCategoryName;

    @Schema(description = "点赞数量")
    private Integer likeCount;

    @Schema(description = "收藏数量")
    private Integer collection;

    @Schema(description = "查看次数")
    private Integer watch;

    @Schema(description = "是否显示")
    @TableField("`show`")
    private Byte show;

    @Schema(description = "排序")
    @TableField("`sort`")
    private Integer sort;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "转发")
    private Integer forward;
}
